import 'package:FlutterReader/page/search_page.dart';
import 'package:FlutterReader/page/settings_page.dart';
import 'package:flutter/material.dart';

import '../wights/LeftSlideInButton.dart';

class CategoryPage extends StatefulWidget {
  const CategoryPage({super.key});

  @override
  State<CategoryPage> createState() => _CategoryPageState();
}

class _CategoryPageState extends State<CategoryPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("分类界面"),
        actions: [
          LeftSlideInButton(
            myPageBuilder: (context) =>SearchPage(),
            icon: Icon(Icons.search),
          ),
          LeftSlideInButton(
            myPageBuilder: (context) => SettingsPage(),
            icon: Icon(Icons.settings),
          ),
        ],
      ),
      body: Center(
        child: Text("网络书籍分类界面" ,style: TextStyle(fontSize: 24),),
      ),
    );
  }
}
